package models

import "time"

/**
 * @Author: zhaobin
 * @Description TODO
 * @Date: 2022-05-19 22:28
 */

type Address struct {
	Id             int64     `json:"id"`
	UserId         int64     `json:"user_id"`
	Phone          string    `json:"phone"`
	Name           string    `json:"name"`
	Address        string    `json:"address"`
	DefaultAddress int       `json:"default_address"` // 默认收获地址=>1，否则0
	CreatedAt      time.Time `json:"created_at"`      // 列名是 `created_at`
	UpdatedAt      time.Time `json:"updated_at"`      // 列名是 `updated_at`
}

func (Address) TableName() string {
	return "address"
}
